{
  "name": "Go",
  "build": {
    "dockerfile": "Dockerfile"
  },
  "runArgs": ["--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined"],
  "containerEnv": {
    "GOPATH": "/go"
  },
  "remoteEnv": {
    "GOPATH": "${containerEnv:GOPATH}"
  },
  "mounts": [
    "source=terraform-provider-cloudflare-bashhistory,target=/commandhistory,type=volume"
  ],
  "updateContentCommand": "go generate -tags tools tools/tools.go",
  "customizations": {
    "vscode": {
      "settings": {
        "editor.formatOnSave": true,
        "go.toolsManagement.checkForUpdates": "local",
        "go.useLanguageServer": true,
        "go.gopath": "/go",
        "go.formatTool": "gofmt",
        "go.formatFlags": ["-w", "-s"],
        "go.toolsManagement.autoUpdate": true,
        "go.lintTool": "golangci-lint",
        "go.lintFlags": ["--fast"],
        "gopls": {
          "ui.semanticTokens": true
        },
        "go.survey.prompt": false,
        "terraform.languageServer.enabled": true
      },
      "extensions": ["golang.Go", "hashicorp.terraform"]
    }
  }
}
